#ifndef PLAYER_FACTORY_H
#define PLAYER_FACTORY_H
#include "Singleton.h"
#include "MemoryPoolFactory.h"

class Player;

class PlayerFactory : public Singleton<PlayerFactory>
{

public:
	PlayerFactory();
	~PlayerFactory();


	VOID									Release();
	VOID									Init( DWORD dwSize );

	Player*									Alloc();
	VOID									Free( Player* pPlayer);

protected:
	CMemoryPoolFactory<Player>		        *m_pPlayerPool;


};



#endif